<?php
	//引入sqlhelp.php
	include 'sqlhelp.php';
	header("Content-Type:text/html;charset=utf-8");
	$sender=$_POST['sender'];
	$getter=$_POST['getter'];
	$content=$_POST['content'];
	 file_put_contents("I:/test.txt","--sender--".$sender."--getter--".$getter."--content--".$content."\r\n",FILE_APPEND);
	 //构建插入sql语句
	 $sql="insert into messages values(null,'$sender','$getter','$content',now(),0)";
	//创建对象
	$sqlobj=new Sqlhelp();
	$sqlobj->excutesql($sql,'chatroom');
?>